Thinking aloud about restic environment variables.

Program runs 3 restic commands.
restic snapshots (source)
restic snapshots (dest)
restic copy (dest and source)

environment variables are common to all three, sort-of, because the copy command inherits from both repositories.
currently we specify env vars on a per-repository basis, but this is sorta pointless, because without the copy command there is no program.

Question is whether we should just have a single set of env vars or not. Are there ever situations where someone might want to set env vars for the snapshots command, but not for the others?


-------------------

I think we'd need to redesign the config file honestly.

The most *flexible* approach is to have multiple repositories configured.
And then have multiple [retention] blocks.
And have multiple [policy] blocks.

Each policy can have a source repo, a destination repo, and then a retention/filter (needs work on the name.)

maybe instead of policy, replica is a better name? OR MAYBE JUST "JOB"?